/**
 * Created by Administrator on 2015/12/8.
 */
/*收藏按钮*/
var aA=document.getElementById('sc-btn').getElementsByTagName('a')[0];
var str=aA.innerHTML;

if(str=="已收藏"){
    aA.onmouseover=function(){
            this.innerHTML="取消收藏"
    }
    aA.onmouseout=function(){
        this.innerHTML="已收藏";
    }
}

/*点赞按钮*/
var oImg=document.getElementById('like');
var aStr=oImg.src.split('/');
var pStr=aStr[aStr.length-1];
if(pStr=='hadlike.gif'){
    oImg.onclick=function(){
        alert("亲，你已经点过赞了哦");
        ;
    }
}

